from typing import List


class Solution:
    @staticmethod
    def subsets(nums: List[int]) -> List[List[int]]:
        result = [[]]
        for i in nums:
            result += [[i] + num for num in result]
        return result


if __name__ == '__main__':
    print(Solution().subsets(nums=[1, 2, 3]))
